#ifndef EYERWANDARTIST_WEBCODECSTHREAD_HPP
#define EYERWANDARTIST_WEBCODECSTHREAD_HPP

#include "EyerThread/EyerThread.hpp"
#include "EyerAV/EyerAV.hpp"

namespace Eyer
{
    class WebCodecsThread : public EyerThread
    {
    public:
        static void event_loop(void * arg);
        int eventLoop();
        virtual void Run() override;

        EyerAVReader * reader = nullptr;
        Eyer::EyerAVBitstreamFilter * avBitstreamFilter = nullptr;
        int videoStreamIndex = -1;
        int decodeIndex = -1;
    };
}

#endif //EYERWANDARTIST_WEBCODECSTHREAD_HPP
